<script>
import { UserConfig } from '@/static/js/config'

export default {
	onLaunch: function() {
		console.log('App Launch')
		// 检查登录状态
		if (!UserConfig.isLoggedIn()) {
			uni.reLaunch({
				url: '/pages/login/login'
			})
		}
	},
	onShow: function() {
		console.log('App Show')
	},
	onHide: function() {
		console.log('App Hide')
	}
}
</script>

<style>
	/*每个页面公共css */
	@import '@/static/iconfont.css';
</style>
